Question about Microsoft Windows 98 for PC

1 Answer

Printf create a c program that print your name,age and address.

Posted by on

1 Answer

  • Level 2:

    An expert who has achieved level 2 by getting 100 points

    Hot-Shot:

    An expert who has answered 20 questions.

    Corporal:

    An expert that hasĀ over 10 points.

    Mayor:

    An expert whose answer gotĀ voted for 2 times.

  • Expert
  • 40 Answers

#include <stdio.h>
main ();
{
printf ("Name : your name , Age : your age , Address : your address \n");
}

Posted on Jan 05, 2009

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
goodluck!

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

2 Answers

I need a program of cpu scheduling using C++ please help me out it consit of FCFS,SJF and RR..


// crt_clock.c // This example prompts for how long // the program is to run and then continuously // displays the elapsed time for that period. // #include <stdio.h> #include <stdlib.h> #include <time.h> void sleep( clock_t wait ); int main( void ) { long i = 6000000L; clock_t start, finish; double duration; // Delay for a specified time. printf( "Delay for three seconds\n" ); sleep( (clock_t)3 * CLOCKS_PER_SEC ); printf( "Done!\n" ); // Measure the duration of an event. printf( "Time to do %ld empty loops is ", i ); start = clock(); while( i-- ) ; finish = clock(); duration = (double)(finish - start) / CLOCKS_PER_SEC; printf( "%2.1f seconds\n", duration ); } // Pauses for a specified number of milliseconds. void sleep( clock_t wait ) { clock_t goal; goal = wait + clock(); while( goal > clock() ) ; }

Mar 22, 2009 | Computers & Internet

1 Answer

C code


try this Code

  1. #include<stdio.h>
  2. #include<conio.h>
  3. #include<alloc.h>
  4. void main()
  5. {
  6. int i, j,n,*p,check=1, blank, memspace, mem=0, rowdiff=1;
  7. printf("Enter the no. of rows to be printed :");
  8. scanf("%d",&n);
  9. blank=n-1;
  10. memspace=((n*(n+1))/2);
  11. p=(int*)malloc(sizeof(int)* memspace);
  12. for(i=0;i<n;i++)
  13. {
  14. printf("\n");
  15. for(j=0;j<blank;j++)
  16. printf(" ");
  17. for(j=0;j<check;j++)
  18. {
  19. if(j==0 || j==(check-1))
  20. p[mem]=1;
  21. else
  22. p[mem]=p[mem-rowdiff] + p[mem-rowdiff+1];
  23. printf("%d ",p[mem]);
  24. mem++;
  25. }
  26. for(j=0;j<blank;j++)
  27. printf(" ");
  28. blank--;
  29. check++;
  30. rowdiff++;
  31. }
  32. getch();
  33. }
--------------------------------------------------------------------------------------------------------------------------------------------------
#include<stdio.h>
void main()
{
int num,x,y,a[50][50];
clrscr();
fflush(stdin);

printf("Enter the number of rows: ");
scanf("%d",&num);

printf("\n\t\tPascal's Triangle of Order %d\n\n",num);

for(x=0;x<num;x++)
{
for(y=0;y<=x;y++)
{
if(x==y || y==0)
a[x][y]=1;
else
a[x][y]=a[x-1][y-1]+a[x-1][y];
printf("%4d",a[x][y]);
}
printf("\n\n");
}

getch();
}

Sep 20, 2008 | Computers & Internet

1 Answer

C program


See the Following Program

Leap Years
Def: A year is a century year if it is divisible by 100.
Def: A year is a non-century year if it is not a century year.
Def: A year is a leap year if it is a non-century year that is divisible by 4, or a century year that is divisible by 400. Nothing else is a leap year.
In a source file named leapyears.cpp, write a program that will prompt the user for the starting year and ending year for a range of years and print to the screen all leap years in that range, 5 years per line. You must write a separate function called isLeapYear that takes a year as a parameter and returns whether or not that year is a leap year. Your main function will call the isLeapYear function in a loop for every year within the range delineated by, and including, the starting and ending years.
Help with Code Tags c Syntax (Toggle Plain Text)
  1. #include <iostream>
  2. using namespace std;
  3. bool LeapYear(int y)
  4. {
  5. return ( y % 4 == 0) && (y % 100 != 0) || (y % 400 == 0);
  6. }
  7. double isLeapYear(double x)
  8. {
  9. if( x > -10000 && x < 10000)
  10. return x;
  11. }
  12. int main()
  13. {
  14. int x;
  15. cout << "Please enter start and end of a range of years: ";
  16. cin >> x;
  17. if (isLeapYear(x))
  18. {
  19. if (LeapYear(x))
  20. cout << x;
  21. }
  22. }
--------------------------------------------------------------------------------------------------------------------------------------------------
The One More Sample Of the Program

C program to check whether a year is a leap year or not.

Code: C /*
** C program to check whether an entered year is a leap year or not
** @author: Pradeep
** @date: 02/12/06
*/


#include<stdio.h>

int main(void)
{
int year;

printf("Enter the year: ");
scanf("%d",&year);

/*
** The logic is that the year is either divisible by both
** 100 and 4 , OR its only divisible by 4 not by hundred
*/

if(year%400 ==0 || (year%100 != 0 && year%4 == 0))
{
printf("Year %d is a leap year",year);
}
else
{
printf("Year %d is not a leap year",year);
}

return 0;
}
If Not Satisfied Just put the Program name in Google and Search

Sep 10, 2008 | Computers & Internet

1 Answer

Need code


Try the Following Five Programs

1) Program for Prime Number Generation

#include <stdio.h>
main()
{
int n,i=1,j,c;
clrscr();
printf("Enter Number Of Terms
");
printf("Prime Numbers Are Follwing
");
scanf("%d",&n);
while(i<=n)
{
c=0;
for(j=1;j<=i;j++)
{
if(i%j==0)
c++;
}
if(c==2)
printf("%d ",i)
i++;
}
getch();
}
--------------------------------------------------------------------------------------------------------------------------------------------------

2)Program for finding the prime numbers

#include <stdio.h>
#include <conio.h>
void main()
{
int n,m,k,i,max;
char c;
clrscr();
repeat: max=0;
k=2;
n=1;
printf("You want prime numbers upto:- ");
scanf("%d",&max);
printf("

");
for (i=1;i<=max;i++)
{
again: m=(n/k)*k;
if (m!=n)
k=k+1;
else
goto try1;
if (k < n/2)
goto again;
else
printf("%d",n);
printf(" ");
try1: n=n+1;
k=2;
}
fflush(stdin);
printf ("

Do you want to continue?(y/n):- ");
scanf("%c",&c);
if (c=='y')
goto repeat;
getch();

}
---------------------------------------------------------------------------------------------------------------------------------------------------

3)
  1. #include <stdio.h>
  2. int main(void) {
  3. int n,
  4. lcv,
  5. flag; /* flag initially is 1 and becomes 0 if we determine that n
  6. is not a prime */
  7. printf("Enter value of N > ");
  8. scanf("%d", &n);
  9. for (lcv=2, flag=1; lcv <= (n / 2); lcv++) {
  10. if ((n % lcv) == 0) {
  11. if (flag)
  12. printf("The non-trivial factors of %d are: \n", n);
  13. flag = 0;
  14. printf("\t%d\n", lcv);
  15. }
  16. }
  17. if (flag)
  18. printf("%d is prime\n", n);
  19. }
---------------------------------------------------------------------------------------------------------------------------------------------------

4)

#include<stdio.h>

#include<conio.h>

void main()

{

int n,i,c=0;

clrscr();

printf("enter the number:");

scanf("%d",&n);

for(i=1;i<=n;i++)

{

if(n%i==0)

{

c=c+1;

}

}

if(c==2)

printf("number is prime");

else

printf("number is not prime");

getch();

}
-------------------------------------------------------------------------

5)
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("enter the number:");
scanf("%d",&a);
for(b=2;b<a/2;b++)
{
if(n%i==0)
{
printf("\n Its not a Prime number");
c=1;
break;
}
if(flag==0)
printf("\n Its a Prime Number");
getch();
}
}


Sep 02, 2008 | Computers & Internet

1 Answer

C programme


here is the source code-
main()
{
int n,i,j,k;
printfI("Enter a number to form the triangle");
scanf("%d",&n);
printf("\n\t\t\t");
for(i=1;i<=n;i++)
printf(" ");
for(k=1;k<=i;k++)
printf("%ld",k);
for(k=i-1;k>0;k--)
printf("%ld",k);
printf("\n\t\t\t");
}
}

Aug 26, 2008 | Computers & Internet

2 Answers

C progarming language


i cannot write c program

Jun 24, 2008 | Computers & Internet

2 Answers

C++ program


how to generate palindrome numbers through C++

Mar 21, 2008 | Computers & Internet

1 Answer

Turbo c source code


#include<stdio.h>

float add(float,float);
float sub(float,float);
float product(float,float);
float divide(float,float);

void main()
{
float n1,n2;
char sym,choice;
printf("This Program is a program for calculator\n\n");
scanf("%f%c%f",&n1,&sym,&n2);
if(sym=='+')
printf("\n%f",add(n1,n2));
if(sym=='-')
printf("\n%f",sub(n1,n2));
if(sym=='*')
printf("\n%f",product(n1,n2));
if(sym=='/')
printf("%f",divide(n1,n2));
printf("\nDo you wish to continue[y/n]");
scanf("%s",&choice);
if(choice=='y'||choice=='Y')
main();
}

float add(float m1,float m2)
{
return(m1+m2);
}

float sub(float m1,float m2)
{
return(m1-m2);
}

float product(float m1,float m2)
{
return(m1*m2);
}

float divide(float m1,float m2)
{
return(m1/m2);
}

Feb 21, 2008 | Computers & Internet

1 Answer

C++ PROGRAMMING


Dear Mr. Thephu,
here is the solution:
first, declare a structure
struct workers
{
char name[20],job[10],surname[20];
int age;
workers *next; // this is the pointer to the next node of
//type worker.
};
in the main program, declare a pointer to first worker node called head as :
workers *head;
head = new workers;
or (head =( workers *) malloc (sizeof(workers));
Then in the main program, whenever the user wishes to create a worker and join it to the list, u can include the following code:
head ->next = new workers;
cin >> head -> name >>job>>surname >> age;
if the user finishes the input include,
head -> next = NULL.

Feb 05, 2008 | Computers & Internet

1 Answer

How to create labels from excel data sheet


sir u just have to write all info row wise then ur issue will be resolved good luck

Oct 21, 2007 | Microsoft Windows XP Professional With...

Not finding what you are looking for?
Microsoft Windows 98 for PC Logo

Related Topics:

38 people viewed this question

Ask a Question

Usually answered in minutes!

Top Microsoft Computers & Internet Experts

micky dee

Level 3 Expert

2635 Answers

Les Dickinson
Les Dickinson

Level 3 Expert

18333 Answers

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

Are you a Microsoft Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...