To enter the age of person and check whether he or she is eligible for vote or not in flowchart
Answers
Answered by
3
Here is a c program To enter the age of person and check whether he or she is eligible for vote or not in flowchart
-----------------------------------------------------
#include<stdio.h>
void main()
{
int age;
printf("Enter age : ");
scanf("%d", &age);
if(age >= 18)
{
printf("You are eligible for voting");
}
else
{
printf("You are not eligible for voting");
}
}
-----------------------------------------------------
#include<stdio.h>
void main()
{
int age;
printf("Enter age : ");
scanf("%d", &age);
if(age >= 18)
{
printf("You are eligible for voting");
}
else
{
printf("You are not eligible for voting");
}
}
Answered by
2
HII FRIEND!!
In c language, your answer will be like as follows:
#include<stdio.h>
#include<conio.h>
void main();
{
int age;
clrscr();
printf ( "enter your age")
scanf( "%d" ,&age);
if( age >=18)
{
printf( "you are eligible for voting")
}
else
{
printf ( " you are not eligible for voting ")
}
getch();
}
In c language, your answer will be like as follows:
#include<stdio.h>
#include<conio.h>
void main();
{
int age;
clrscr();
printf ( "enter your age")
scanf( "%d" ,&age);
if( age >=18)
{
printf( "you are eligible for voting")
}
else
{
printf ( " you are not eligible for voting ")
}
getch();
}
Similar questions